<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="content">
 *
 * @package keyson
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="<?php bloginfo('template_directory') ?>/js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory') ?>/js/flexy-menu.js"></script>
<script>
			$(document).ready(function(){
				$(".panel a").click(function(e){
					e.preventDefault();
					var style = $(this).attr("class");
					var menustyle = $(".flexy-menu").attr("class");
					if(menustyle.indexOf("light") > -1){
						$(".flexy-menu").removeAttr("class").addClass("flexy-menu light").addClass(style);
					}
					else{
						$(".flexy-menu").removeAttr("class").addClass("flexy-menu").addClass(style);
					}
				});
			});
		</script>
		<script type="text/javascript">
			$(document).ready(function(){  
				$(".flexy-menu").flexymenu({
					speed: 400,
					type: "horizontal",
					align: "left",
					indicator: false
				});
			});
		</script>
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

<div id="page" class="hfeed site">
	<?php do_action( 'before' ); ?>
	<div class="container"><!--[start:container]-->
		<header id="masthead" class="site-header" role="banner">
			<div class="row group">
				<div class="top-navigate"><!--[start:top-navigate]-->
					<div class="four columns site-branding">
						<?php 
						global $smof_data;
							
						$logo = $smof_data['logo_url'];
						if ( $logo ) : ?>
						<div class="site-logo">
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo $logo; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
						</div>
						<?php else : ?>
						<h4 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h4>
						<h6 class="site-description"><?php bloginfo( 'description' ); ?></h6>
						<?php endif;?>
					</div>
					<nav id="site-navigation" class="navigation eight columns" role="navigation">
						<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
					</nav><!-- #site-navigation -->
					<div class="clear"></div>
				</div><!--[end:top-navigate]-->	
			</div>	
		</header><!-- #masthead -->
	</div><!--[end:container]--><div class="clear"></div>